package com.example.user.myzzyl_android;

import java.util.List;

/**
 * Created by User on 2017/7/20.
 */

public class    JsonText {

    /**
     * success : true
     * msg : success
     * data : {"content":[{"id":"402881ed5b1d9709015b1dd108fa000d","createdDate":1490853890000,"modifiedDate":1500447871000,"createdBy":"system","modifiedBy":"system","version":4,"enabled":true,"tp":"upload-files/images/2017/07/19/8a5ad4cd5d59a4fe015d59a4fe100000.jpg","wz":"http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html","nr":"世园会概念图","sx":null},{"id":"402881ed5b1d9709015b1dcedc3d000c","createdDate":1490853747000,"modifiedDate":1500447865000,"createdBy":"system","modifiedBy":"system","version":4,"enabled":true,"tp":"upload-files/images/2017/07/19/8a5ad4cd5d59a4fe015d59a5dfd50001.jpg","wz":"http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html","nr":"场馆预览图","sx":null},{"id":"402881ed5b1484bc015b148a467b0001","createdDate":1490698258000,"modifiedDate":1500447754000,"createdBy":"system","modifiedBy":"system","version":4,"enabled":true,"tp":"upload-files/images/2017/05/09/8a21459c5bea92f1015bea942d5b0003.JPG","wz":"http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html","nr":"世园会预览图","sx":null}],"last":true,"totalPages":1,"totalElements":3,"number":0,"size":3,"numberOfElements":3,"sort":[{"direction":"DESC","property":"createdDate","ignoreCase":false,"nullHandling":"NATIVE","ascending":false}],"first":true}
     */

    private boolean success;
    private String msg;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        @Override
        public String toString() {
            return "DataBean{" +
                    "last=" + last +
                    ", totalPages=" + totalPages +
                    ", totalElements=" + totalElements +
                    ", number=" + number +
                    ", size=" + size +
                    ", numberOfElements=" + numberOfElements +
                    ", first=" + first +
                    ", content=" + content +
                    ", sort=" + sort +
                    '}';
        }

        /**
         * content : [{"id":"402881ed5b1d9709015b1dd108fa000d","createdDate":1490853890000,"modifiedDate":1500447871000,"createdBy":"system","modifiedBy":"system","version":4,"enabled":true,"tp":"upload-files/images/2017/07/19/8a5ad4cd5d59a4fe015d59a4fe100000.jpg","wz":"http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html","nr":"世园会概念图","sx":null},{"id":"402881ed5b1d9709015b1dcedc3d000c","createdDate":1490853747000,"modifiedDate":1500447865000,"createdBy":"system","modifiedBy":"system","version":4,"enabled":true,"tp":"upload-files/images/2017/07/19/8a5ad4cd5d59a4fe015d59a5dfd50001.jpg","wz":"http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html","nr":"场馆预览图","sx":null},{"id":"402881ed5b1484bc015b148a467b0001","createdDate":1490698258000,"modifiedDate":1500447754000,"createdBy":"system","modifiedBy":"system","version":4,"enabled":true,"tp":"upload-files/images/2017/05/09/8a21459c5bea92f1015bea942d5b0003.JPG","wz":"http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html","nr":"世园会预览图","sx":null}]
         * last : true
         * totalPages : 1
         * totalElements : 3
         * number : 0
         * size : 3
         * numberOfElements : 3
         * sort : [{"direction":"DESC","property":"createdDate","ignoreCase":false,"nullHandling":"NATIVE","ascending":false}]
         * first : true
         */

        private boolean last;
        private int totalPages;
        private int totalElements;
        private int number;
        private int size;
        private int numberOfElements;
        private boolean first;
        private List<ContentBean> content;
        private List<SortBean> sort;

        public boolean isLast() {
            return last;
        }

        public void setLast(boolean last) {
            this.last = last;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getNumberOfElements() {
            return numberOfElements;
        }

        public void setNumberOfElements(int numberOfElements) {
            this.numberOfElements = numberOfElements;
        }

        public boolean isFirst() {
            return first;
        }

        public void setFirst(boolean first) {
            this.first = first;
        }

        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        public List<SortBean> getSort() {
            return sort;
        }

        public void setSort(List<SortBean> sort) {
            this.sort = sort;
        }

        public static class ContentBean {
            /**
             * id : 402881ed5b1d9709015b1dd108fa000d
             * createdDate : 1490853890000
             * modifiedDate : 1500447871000
             * createdBy : system
             * modifiedBy : system
             * version : 4
             * enabled : true
             * tp : upload-files/images/2017/07/19/8a5ad4cd5d59a4fe015d59a4fe100000.jpg
             * wz : http://zhihui.expo2017.net.cn/zz/yuanbodongtai.html
             * nr : 世园会概念图
             * sx : null
             */

            private String id;
            private long createdDate;
            private long modifiedDate;
            private String createdBy;
            private String modifiedBy;
            private int version;
            private boolean enabled;
            private String tp;
            private String wz;
            private String nr;
            private Object sx;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public long getCreatedDate() {
                return createdDate;
            }

            public void setCreatedDate(long createdDate) {
                this.createdDate = createdDate;
            }

            public long getModifiedDate() {
                return modifiedDate;
            }

            public void setModifiedDate(long modifiedDate) {
                this.modifiedDate = modifiedDate;
            }

            public String getCreatedBy() {
                return createdBy;
            }

            public void setCreatedBy(String createdBy) {
                this.createdBy = createdBy;
            }

            public String getModifiedBy() {
                return modifiedBy;
            }

            public void setModifiedBy(String modifiedBy) {
                this.modifiedBy = modifiedBy;
            }

            public int getVersion() {
                return version;
            }

            public void setVersion(int version) {
                this.version = version;
            }

            public boolean isEnabled() {
                return enabled;
            }

            public void setEnabled(boolean enabled) {
                this.enabled = enabled;
            }

            public String getTp() {
                return tp;
            }

            public void setTp(String tp) {
                this.tp = tp;
            }

            public String getWz() {
                return wz;
            }

            public void setWz(String wz) {
                this.wz = wz;
            }

            public String getNr() {
                return nr;
            }

            public void setNr(String nr) {
                this.nr = nr;
            }

            public Object getSx() {
                return sx;
            }

            public void setSx(Object sx) {
                this.sx = sx;
            }

            @Override
            public String toString() {
                return "ContentBean{" +
                        "id='" + id + '\'' +
                        ", createdDate=" + createdDate +
                        ", modifiedDate=" + modifiedDate +
                        ", createdBy='" + createdBy + '\'' +
                        ", modifiedBy='" + modifiedBy + '\'' +
                        ", version=" + version +
                        ", enabled=" + enabled +
                        ", tp='" + tp + '\'' +
                        ", wz='" + wz + '\'' +
                        ", nr='" + nr + '\'' +
                        ", sx=" + sx +
                        '}';
            }
        }

        public static class SortBean {
            @Override
            public String toString() {
                return "SortBean{" +
                        "direction='" + direction + '\'' +
                        ", property='" + property + '\'' +
                        ", ignoreCase=" + ignoreCase +
                        ", nullHandling='" + nullHandling + '\'' +
                        ", ascending=" + ascending +
                        '}';
            }

            /**
             * direction : DESC
             * property : createdDate
             * ignoreCase : false
             * nullHandling : NATIVE
             * ascending : false
             */

            private String direction;
            private String property;
            private boolean ignoreCase;
            private String nullHandling;
            private boolean ascending;

            public String getDirection() {
                return direction;
            }

            public void setDirection(String direction) {
                this.direction = direction;
            }

            public String getProperty() {
                return property;
            }

            public void setProperty(String property) {
                this.property = property;
            }

            public boolean isIgnoreCase() {
                return ignoreCase;
            }

            public void setIgnoreCase(boolean ignoreCase) {
                this.ignoreCase = ignoreCase;
            }

            public String getNullHandling() {
                return nullHandling;
            }

            public void setNullHandling(String nullHandling) {
                this.nullHandling = nullHandling;
            }

            public boolean isAscending() {
                return ascending;
            }

            public void setAscending(boolean ascending) {
                this.ascending = ascending;
            }
        }
    }

    @Override
    public String toString() {
        return "JsonText{" +
                "success=" + success +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
